package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 充值卡列表
 *
 * @author oxiny
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_charge")
public class Charge extends Model<Charge> {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    @ApiModelProperty("购买金额")
    private Integer price;

    @ApiModelProperty("获得金额")
    private Integer getTotal;

    @ApiModelProperty("用户可见类型 0全部可见 1仅新用户可见 2仅老用户可见")
    private Integer userType;

    @ApiModelProperty("赠送内容 0无 1卡金 2券 3券包")
    private Integer sendType;

    @ApiModelProperty("赠送卡金数量")
    private Integer sendMoney;

    @ApiModelProperty("赠送优惠券id")
    private Integer sendCouponId;

    @ApiModelProperty("赠送券包id")
    private Integer sendCouponPackageId;

    @ApiModelProperty("赠送内容文本")
    private String sendText;

    @ApiModelProperty("排序")
    private Integer orderBy;

    @ApiModelProperty("状态 0下架 1上架")
    private Integer status;

    @ApiModelProperty("规则")
    private String content;

    private Date dateTime;
}
